Feature: Create a new complaint
	As a user
	I want to create a complaint
	So that I can publish it later
	
Background:
  Given I am logged in as "renaldi"
  And I am on the "Index" page

Scenario: Go to create a new complaint form
	Given I am on the "Index page"
  And I should see "Create a New Complaint"
	When I follow "Create a New Complaint"
	Then I should see a form with title "New Complaint"
	
Scenario: Create a new complaint
	Given I am on the new complaint page
	When I fill in "Title" with "Facebook violates privacy"
	And I fill in "Description" with "I have an account on Facebook and then they send it to third party..."
	And I fill in "Category" with "Social Networking"
	And I fill in "Company" with "Facebook"
	And I press "Create"
	Then I should be on "Your Complaint" page
	And I should see a complaint with title "Facebook violates privacy"
	
Scenario: Add a new complaint with error
  Given I am on the new complaint page
	When I fill in "Title" with "Facebook violates privacy"
	And I press "Create"
	Then I should see "Description can't be blank"
	Then I should see "Company can't be blank"
	